home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Text⁄Files / Regexp / regerror.c < prev    next >
C/C++ Source or Header  |  1991-04-09  |  232b  |  18 lines

  1. #include "stdio.h"
  2. #include    "regexp.h"
  3. #include    "regproto.h"
  4. #include    "stdlib.h"
  5.  
  6. void
  7. regerror(s)
  8. char *s;
  9. {
  10. #ifdef ERRAVAIL
  11.     error("regexp: %s", s);
  12. #else
  13.     fprintf(stderr, "regexp(3): %s", s);
  14.     exit(1);
  15. #endif
  16.     /* NOTREACHED */
  17. }
  18.